<?php #//v.3.3.0

#///////////////////////////////////////////////////////
#//  COPYRIGHT 2007 Phpauction.org ALL RIGHTS RESERVED//
#///////////////////////////////////////////////////////

include "includes/config.inc.php";

#// Handle banners clickthrough

$URL = base64_decode($_GET["url"]);
$URL = str_replace('\r','',str_replace('\n','',$URL ));

#// Update clickthrough counter in the database
@mysql_query("UPDATE PHPAUCTIONXL_banners set clicks=clicks+1 WHERE id=".intval($_GET["banner"]));

#// Redirect

Header("Location: $URL");
exit;
?>